export default [
  {
    path: "/",
    name: "mainView",
    //懒加载 webpackChunkName 对应的路由的name
    component: () => import("@/views/MainView"),
    //为了更好的兼容 各种缓存 或是其他的复杂的功能 路由最好是两层
    children: [
      {
        path: "/",
        name: "/",
        redirect: "/understand/list",
      },
      {
        path: "/video/list",
        name: "VideoListPage",
        component: () => import("@/views/video/list"),
        meta: { title: "列表页" },
      },
      {
        path: "/video/contentDetail",
        name: "VideoContentDetailPage",
        component: () => import("@/views/video/contentDetail"),
        meta: { title: "详情页" },
      },
      {
        path: "/video/tableDetail",
        name: "VideoTableDetailPage",
        component: () => import("@/views/video/tableDetail"),
        meta: { title: "详情页" },
      },
      {
        path: "/understand/list",
        name: "UnderstandListPage",
        component: () => import("@/views/understand/understandIndex"),
        meta: { title: "视频识别列表页" },
      },
      {
        path: "/understand/detail",
        name: "UnderstandDetailPage",
        component: () => import("@/views/understand/understandDetail"),
        meta: { title: "视频识别详情页" },
      },
      {
        path: "/group/list",
        name: "GroupListPage",
        component: () => import("@/views/group/groupIndex"),
        meta: { title: "分组管理列表页" },
      },
      {
        path: "/numberEntry/list",
        name: "NumberEntryListPage",
        component: () => import("@/views/numberEntry/numberEntryIndex"),
        meta: { title: "号码录入列表页" },
      },
    ],
  },
];
